package yf.mall.dao;

import org.apache.ibatis.annotations.Param;
import yf.mall.entity.ShopEntity;
import org.apache.ibatis.annotations.Mapper;
import com.yf.dao.BaseDao;

import java.util.List;

/**
 * 店铺Dao
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Sun May 24 13:54:38 CST 2020
 */
@Mapper
public interface ShopDao extends BaseDao<ShopEntity> {

/*        List<ShopVo> queryListVo(ShopVo shopVo);

        ShopVo getVo(Long id);*/

    ShopEntity findByUserId(Long userId);

    ShopEntity findByName(String name);

    List<ShopEntity> findByType(Integer type);

    List<ShopEntity> findAll();

    void delShop(@Param("uid") Long uid, @Param("card") String card);

    void delRoleBySysUserId( Long sysUserId);


}
